package com.neusoft.adminweb.dao;

import com.neusoft.adminweb.entity.UmsAdminRoleRelation;
import com.neusoft.adminweb.entity.UmsResource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 后台用户和角色关系表(UmsAdminRoleRelation)表数据库访问层
 *
 * @author makejava
 * @since 2020-11-20 15:14:42
 */
public interface UmsAdminRoleRelationDao extends BaseDao<UmsAdminRoleRelation> {

    /**
     * 获取用户所有可访问资源
     */
    List<UmsResource> getResourceList(@Param("adminId") Long adminId);

}